import { lazy } from 'react'
import { Navigate } from 'react-router-dom'
import Approval from '../views/Staff/Approval/Approval'

var Staffindex = lazy(() => import('@/views/Staff/StaffIndex/StaffIndex.tsx'))
var Roster = lazy(() => import('@/views/Staff/Staff-management/Roster/Roster.tsx'))
var RosterAdd = lazy(() => import('@/views/Staff/Staff-management/Roster/RosterAdd.tsx'))
var CountEntry = lazy(() => import('../views/Staff/Count/Count-entry'))
var StaffEntry = lazy(() => import('../views/Staff/Staff-entry/staffEntry'))
var EntryAdd = lazy(() => import('../views/Staff/Staff-entry/EntryAdd'))
var StaffPerson = lazy(() => import('../views/Staff/Staff-management/Staff-person/StaffPerson'))
var Record = lazy(() => import('@/views/Staff/Staff-management/Staff-Record/Record.tsx'))
var RecordAdd = lazy(() => import('../views/Staff/Staff-management/Staff-Record/RecordAdd/RecordAdd'))
var Regulation = lazy(() => import('../views/Staff/Regulation/Regulation'))

export default [
    {
        path:'/index/staff',
        element: <Staffindex />,
        children:[
            {
                path:'/index/staff/roster',
                element: <Roster />,
            },
            {
                path:'/index/staff/rosteradd',
                element: <RosterAdd />,
            },
           
            {
                path:'/index/staff/record',
                element:<Record />,
            },
            {
                path:'/index/staff/recordadd',
                element:<RecordAdd />,
            },
            {
                path:'/index/staff/count',
                element:<CountEntry />,
            },
            {
                path:'/index/staff/entry',
                element:<StaffEntry />,
            },
            {
                path:'/index/staff/entryadd',
                element:<EntryAdd />,
            },
            {
                path:'/index/staff/person',
                element:<StaffPerson />,
            },
            {
                path:'/index/staff/regulation',
                element:<Regulation />,
            },
            {
                path:'/index/staff/approval',
                element:<Approval />,
            },
            {
                path:'/index/staff',
                element: <Navigate to="/index/staff/roster" />
            },
            
           
        ]
    },
    
]
